<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %>
<%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %>

<%
    BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<title>Fraguion</title>
		<link rel="shortcut icon" href="../pic/favicon.ico" />
		<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Serif">
		<link rel='stylesheet' href='../css/createProject.css' type='text/css'>
		<script type="text/javascript" src="../js/jquery.js"></script>
		<script type='text/javascript' src='../js/index.js'></script>

	</head>
	
	<body id="body" align="center">
	<div id="footer_lang">
		<div id="logout_bar" class="full_fill_box">
			<form action="/logout" method="get">
				<input type="submit" id="logout_box" value="Logout" class="button"/>
			</form>	
		</div>
	</div>
		<c:if test="${not empty error_list}">
			<div class="error_box">
				<c:forEach items="${error_list}" var="error_li">
					<div>
						<c:out value="${error_li}" />
					</div>
				</c:forEach>
			</div>
		</c:if>
	<div id="main_div">
		<div id="create_project_div" class="center_container">
			<form action="<%= blobstoreService.createUploadUrl("/createProject") %>" method="POST" enctype="multipart/form-data">
				<div id="title_div" class="form_row">
					<div class="form_project_label left">Titulo:</div>
					<input class="input_project_title left" type="text" name="title"/>	
				</div>
				<div id="description_div" class="form_row">
					<div class="form_project_label left clear">Descripcion:</div>
					<textarea class="textarea_project left" name="description"></textarea>			
				</div>
				<div id="project_to_upload_div" class="form_row">
					<input class="load_file_button left" type="file" name="myProject"/>
				</div>

					<input id="save_button" class="submit_form_button" value="Save Project" type="submit"/>
	
			</form>
		</div>		
	</div>
	</body>
</html>
